package com.example.springboottestgit.enums;

/**
 * @description:
 * @author: ZZZ
 * @time: 2021/2/24 15:35
 */
public enum ExceptionCodeEnum {
    REQUEST_SUCCESS("000100", "请求成功"),
    REQUEST_FAIL("000101", "请求失败"),
    PARAMETER_ERROR("000102", "参数不正确"),
    QUERY_NO_RESULT("000103", "查询无结果"),



    BUSINESS_ERROR("001101", "业务异常"),
    INTERFACE_CALL_FAIL("001002", "接口调用失败"),
    PYTHON_ANALYSIS_ERROR("001003", "python 执行解析命令失败"),
    MODE_LOAD_FAIL("001004", "模型加载失败"),
    MODE_BUSY("001005", "模型忙碌中");


    public String code;
    private String message;

    ExceptionCodeEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}

